package org.betasoftware.cloud.drive;

import org.betasoftware.cloud.CloudFile;

import com.google.api.services.drive.Drive;
import com.google.api.services.drive.model.File;

public class DriveCloudFile implements CloudFile {

	private File file;
	private Drive drive;
	
	public DriveCloudFile(File file, Drive drive) {
		this.file = file;
		this.drive = drive;
	}
	
	public DriveCloudFile(Drive drive) {
		this.drive = drive;		
	}

	public String getName() {
		return file.getTitle();
	}

	public String getId() {
		// TODO Auto-generated method stub
		return file.getId();
	}

	public String getPath() {
		// TODO Auto-generated method stub
		return null;
	}

	public void saveTo(java.io.File file) {
		// TODO Auto-generated method stub
		 
	}
	
	public void uploadFrom(java.io.File file) {
		
	}
	
	public long getFileSize() {		
		return file.getFileSize();
	}
	
	public Object getSource() {		
		return file;
	}
}
